﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OOAD_Project_Engine.Foundation.Interfaces;
using OOAD_Project_Engine.Application.Services;

namespace OOAD_Project_Editor.Domain.ManageSceneActions
{
    [Action(ActionType = EActionType.RemoveEntity)]
    class RemoveEntityAction : ManageSceneAction
    {
        IEntity removedEntity;
        public RemoveEntityAction(ISceneService scene, IEntity entity)
            : base(scene)
        {
            removedEntity = entity;
        }

        public override void DoAction()
        {
            Scene.Manager.Remove(removedEntity);
        }
    }
}
